<p><?= $this->App->buttonLink('+ Novi Klijent', '/clients/create') ?></p>

<?= $this->element('entity_table', array(
    'columns' => array(
        'Id'             => 'Client.id',
        'Naziv'          => 'Client.name',
        'Adresa'         => 'Client.address',
        'PIB'            => 'Client.pib',
        'Mat.Br.'        => 'Client.matbr',
        'Kontakt osoba'  => 'Client.contact_person',
        'Telefon'        => 'Client.phone',
        'Faks'           => 'Client.fax',
        'E-Mail'         => 'Client.email'
    ),
    'columnWidth' => array(
        'Id'     => '1%',
        'Naziv'  => '15%'
    ),
    'links' => array(
        'Naziv'  => array('/clients/edit/%d', 'Client.id')
    ),
    'filter' => array(
        'Naziv'          => ''.@$filter['Client']['name'],
        'Kontakt osoba'  => ''.@$filter['Client']['contact_person']
    ),
    'data'     => $clients,
    'id'       => 'Client.id',
    'entity'   => 'clients',
    'sort_by'  => $sort_by,
    'sort_dir' => $sort_dir,
    'actions'  => array(
        array(
            'label' => 'Kreiraj kampanju',
            'link'  => '/campaigns/create/?client=%s'
        )
    )
)) ?>
